/**
 * Created by apple on 2017/6/29.
 */

export default class DataReposiyoty{
  fetchNetRepository(url){
    return new Promise((resolve,reject) =>{
      fetch(url)
        .then(response => response.json())
        .then(result => resolve(result))
        .catch(err =>{
          reject(err)
        })
    })
  }
}
